package cn.wolfcode.plus.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

@Data
@TableName("employee")
public class Employee {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @TableField("name")
    private String name;
    private String password;
    private String email;
    private int age;
    private boolean admin;
    private Long deptId;

    @TableField(exist = false)
    private Department dept;
}
